package com.itheima.model.enums;

public enum AgeRangeEnum {

    UNDER_TWENTY(0, 17, "0-17岁"),
    TWENTY_FIRST(18, 23, "18-23岁"),
    TWENTY_LAST(24, 30, "24-30岁"),
    THIRTY(31, 40, "31-40岁"),
    FORTY(41, 50, "41-50岁"),
    OVER_FIFTY(51, 200, "50岁+");

    private int min;
    private int max;
    private String desc;

    AgeRangeEnum(int min, int max, String desc) {
        this.min = min;
        this.max = max;
        this.desc = desc;
    }

    public int getMin() {
        return min;
    }

    public int getMax() {
        return max;
    }

    public String getDesc() {
        return desc;
    }
}